echo "输入用户名+学号："

read username

hostnamectl set-hostname "$username"

sudo useradd -m "xiaohong"
sudo useradd -m "xiaocui"

echo "xiaohong:123456" | sudo chpasswd
echo "xiaocui:123456" | sudo chpasswd

echo "已修改主机名，已创建用户xiaohong, xiaocui"